package dataObjects;

import java.util.LinkedList;
import java.util.List;

import logicGuiConnection.Actor;
import logicGuiConnection.Role;

public class ActorImp implements Actor{
	
		private int id;
		private String name;
		private List<Role> roles;
		
		/*constructor*/
		
		public ActorImp(int id,String name){
			this.id = id;
			this.name = name;
			LinkedList<Role> role = new LinkedList<Role>();
			this.roles = role;
		}
		
		/*getters*/
		
		public int getID(){
			return id;
		}
		
		public String getName(){
			return name;
		}
		
		public List<Role> getRoles(){
			return roles;
		}
		
		
		/*setters*/
		
		public void setID(int id){
			this.id = id;
		}
		
		public void setName(String name){
			this.name = name;
		}

		public void addRole(RoleImp role){
			roles.add(role);
		}
		
		public void removeRole(RoleImp role){
			this.roles.remove(role);
		}

}
